//
//  clsAntsService.h
//  AntsExpress
//
//  Created by slccper on 16/1/3.
//  Copyright © 2016年 slccper. All rights reserved.
//

#import <Foundation/Foundation.h>
extern const int Ants_Login;
extern const int Ants_GetAreaList;
extern const int Ants_Register;
extern const int Ants_GetHotNews;
extern const int Ants_GetProblemExpressList;
extern const int Ants_GetProbleExpressByid;
extern const int Ants_GetSlideBox;
extern const int Ants_GetUserInfo;
extern const int Ants_GetQuHuoAdress;
extern const int Ants_GetBranchList;
extern const int Ants_GetHotNewsEntity;
extern const int Ants_GetWareList;
extern const int Ants_UpdateQuHuoAdress;
extern const int Ants_GetPickUpPoint;
extern const int Ants_ConvertToMyAccount;
extern const int Ants_MyExpressQuery;
extern const int Ants_MathExpress;
extern const int Ants_GetSendExpress;
extern const int Ants_UpLoadMemberPhoto;
extern const int Ants_GetTokenIOS;
extern const int Ants_GetTaoBaoAdress;
extern const int Ants_UpdateUser;
extern const int Ants_Updateuserpwd;
extern const int Ants_ResivePwd;
extern const int Ants_GetQuestionType;
extern const int Ants_GetQuestioTitle;
extern const int Ants_GetQuestionListTxt;
extern const int Ants_GetCity;
extern const int Ants_GetProvince;
extern const int Ants_GetDistrict;
extern const int Ants_SaveSendExpress;
extern const int Ants_DeleteSendExpress;
extern const int Ants_UpdateSendExpress;
extern const int Ants_GetAppNewVersion;
extern const int Ants_DeviceLoadImg;
extern const int Ants_GetBranchLists;
extern const int Ants_GetConSumpitionLog;
extern const int Ants_GetUserMoney;
@protocol clsAntsServiceDelegate <NSObject>
@optional
- (void)getAntsDataSuccess:(NSInteger)type :(NSMutableDictionary*)pDictionary;
- (void)getAntsDataFail:(NSInteger)type;

@end
@interface clsAntsService : NSObject{
    NSURLConnection *theConnection;
    NSMutableData *webData;
    NSMutableString *currentString;
    NSInteger serviceType;
    NSInteger objType;
    NSMutableDictionary *dictionary;
//    UIApplication* app;
}

@property (nonatomic, assign) id<clsAntsServiceDelegate> delegate;
@property (copy, nonatomic) void (^action)(NSDictionary *dic);
- (void)GetDesStr:(NSString *)desstr;
- (void)Login:(NSString *)uid :(NSString *)password;
- (void)GetAreaList:(void(^)(NSDictionary *dic))action;
- (void)GetWareList:(NSString *)wid action:(void(^)(NSDictionary *dic))action;
- (void)Register:(NSString *)RealName :(NSString *)MemberName :(NSString *)MemberPwd :(NSString *)ResivePwd :(NSString *)MemberPhone :(NSString *)aid :(NSString *)wid :(NSString *)bid :(NSString *)remark;
- (void)GetHotNews;
- (void)GetHotNewsEntity:(NSString *)Entuty;
- (void)GetBranchList:(NSString *)wid action:(void(^)(NSDictionary *dic))action;
- (void)GetQuHuoAdress:(NSString *)encodeName;
- (void)GetProblemExpressList;
- (void)GetProbleExpressByid:(NSString *)idstr;
- (void)GetSlideBox;
- (void)GetUserInfoEntity:(NSString *)username;
- (void)GetPickUpPoint:(NSString *)type;
- (void)ConvertToMyAccount:(NSString *)Oid :(NSString *)encodename;
- (void)MyExpressQuery;
- (void)MathExpress:(NSString *)longs :(NSString *)width :(NSString *)height :(NSString *)weight :(NSString *)wid;
- (void)GetSendExpress;
- (void)UpLoadMemberPhoto:(NSData *)data;
- (void)GetTokenIOS:(NSString *)name :(NSString *)token;
- (void)GetTaoBaoAdress;
- (void)UpdateUser:(NSString *)RealName :(NSString *)qq :(NSString *)wechart :(NSString *)Address :(NSString *)Email :(NSString *)MemberPhone :(NSString *)MemberSex;
- (void)Updateuserpwd:(NSString *)pwd;
- (void)UpdateQuHuoAdress:(NSString *)aid :(NSString *)bid :(NSString *)wid :(NSString *)areaRemark;
- (void)ResivePwd:(NSString *)newPwd;
- (void)GetQuestionType;
- (void)GetQuestioTitle:(NSString*)oid;
- (void)GetQuestionListTxt:(NSString *)oid;
- (void)GetCity:(NSString *)pid action:(void(^)(NSDictionary *dic))action;
- (void)GetProvince:(void(^)(NSDictionary *dic))action;
- (void)GetDistrict:(NSString *)cid action:(void(^)(NSDictionary *dic))action;
- (void)SaveSendExpress:(NSString *)sName :(NSString *)sTelephone :(NSString *)sProvince :(NSString *)sCity :(NSString *)sDistrict :(NSString *)sAdress :(NSString *)uid :(NSString *)memberName :(NSString *)goodsName :(NSString *)province :(NSString *)city :(NSString *)district :(NSString *)isBJ :(NSString *)adress :(NSString *)Telephone;
- (void)DeleteSendExpress :(NSString *)SendExpressMember action:(void(^)(NSDictionary *dic))action;
- (void)UpdateSendExpress:(NSString *)sName :(NSString *)sTelephone :(NSString *)sProvince :(NSString *)sCity :(NSString *)sDistrict :(NSString *)sAdress :(NSString *)uid :(NSString *)memberName :(NSString *)goodsName :(NSString *)province :(NSString *)city :(NSString *)district :(NSString *)isBJ :(NSString *)adress :(NSString *)ID :(NSString *)Telephone;
- (void)GetAppNewVersion;
- (void)DeviceLoadImg:(void(^)(NSDictionary *dic))action;
- (void)GetBranchLists:(NSString *)wid action:(void(^)(NSDictionary *dic))action;
- (void)GetConSumpitionLog:(NSString *)encodename :(NSUInteger)page;
- (void)GetUserMoney:(NSString *)encodename;
- (void)cancel;
@end
